package com.isoftstone.disk.spring.tag.service.impl;

import com.isoftstone.disk.spring.tag.entity.DictTagEntity;
import com.isoftstone.disk.spring.tag.repository.DicDataTagDao;
import com.isoftstone.disk.spring.tag.service.DicDataTagService;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service("dicDataTagService")
public class DicDataTagServiceImpl implements DicDataTagService {
    @Resource
    private DicDataTagDao dicDataTagDao;
    @Override
    public List<DictTagEntity> queryDicInfoByGroupId(String dicGroup) {
        String lang = LocaleContextHolder.getLocale().toString();
        return dicDataTagDao.queryDicInfoByGroupId(lang,dicGroup);
    }
}
